doc = docintro

html:
	rst2html $(doc).rst > docintro.html
pdf:
	rst2latex $(doc).rst > $(doc).tex
	sed -i -e '/^\\documentclass.*/a\\\usepackage{CJKutf8}' -e '/^\\begin{document}/a\\\begin{CJK}{UTF8}{bkai}' -e '/^\\end{document}/i\\\clearpage\\end{CJK}' $(doc).tex
	pdflatex $(doc).tex
	pdflatex $(doc).tex
clean:
	rm -f *.aux *.log *.toc *.pdf *.html *.dvi *.out *.tex
